using System;
using System.Runtime.Serialization;
using LibreriaCommon;

namespace LibreriaData
{
	public class daException : Exception
	{
		public daException() : base()
		{
            ErrorLog.Log(this);
		}

		public daException(Exception ex) : base(ex.Message)
		{
            ErrorLog.Log(ex);
		}

		public daException(string message) : base(message)
		{
            ErrorLog.Log(this);
		}
		
		public daException(string message, Exception inner) : base(message, inner)
		{
            ErrorLog.Log(inner);
		}

        protected daException(SerializationInfo info, StreamingContext context) : base(info, context)
		{
            ErrorLog.Log(this);
		}
	}
}
